<!doctype html><html lang=""><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,viewport-fit=cover,user-scalable=no"/><meta http-equiv="X-UA-Compatible" content="IE=11; IE=10; IE=9; IE=8; IE=EDGE"><link rel="icon" href="favicon.ico"><title>掌上信手书</title><script defer="defer" src="static/js/chunk-vendors.3fb28819e6d12325.1745748073831.js"></script><script defer="defer" src="static/js/app.3fb28819e6d12325.1745748073831.js"></script><link href="css/chunk-vendors.1745748073831.css" rel="stylesheet"><link href="css/app.1745748073831.css" rel="stylesheet"></head><body><div id="app"></div><script src="./vconsole.min.js"></script><script>// eruda.init();
      // 全局错误处理函数
      // window.onerror = function (message, source, lineno, colno, error) {
      //     console.log('捕获到错误: ', message);
      //     // 可以在这里进行其他处理，如上报错误信息
      //     return true; // 返回 true 表示阻止错误信息继续传播
      // };

      // let u = navigator.userAgent;
      // let isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1;
      // if (isAndroid) {
      //     const vConsole = new VConsole();
      //     console.log('Hello world, cloud');
      // }

    function judgeHarmony() {
      console.log('index.html judgeHarmony --------');
      let u = navigator.userAgent || navigator.vendor || window.opera;
      console.log(u);
      console.log(u.includes('Harmony'));
      return u.includes('Harmony')
    }
    function releasedChannelInfo (info) {
        console.log('index.html 发布方式 --------');
        console.log(info);
        if (info.channel !== 'AppStore') {
            const vConsole = new VConsole();
            console.log('Hello world, cloud');
        }
    }

    if (judgeHarmony()) {
        console.log('index.html 在鸿蒙中啦 --------');
        if (window_ohos) {
            window_ohos['getReleasedChannelNativeToH5'] = info => {
                releasedChannelInfo(info)
            }
            if (window_ohos.getReleasedChannel) window_ohos.getReleasedChannel()
        }
    } else {
        window['getReleasedChannelNativeToH5'] = info => {
            releasedChannelInfo(info)
        }
        if (window.getReleasedChannel) window.getReleasedChannel.postMessage('')
    }
    // window['getReleasedChannelNativeToH5'] = info => {
    //   console.log('index.html 发布方式 --------');
    //   console.log(info);
    //   if (info.channel !== 'AppStore') {
    //     const vConsole = new VConsole();
    //       console.log('Hello world, cloud');
    //   }
    // }
    // if (window.getReleasedChannel) {
    //   window.getReleasedChannel.postMessage('')
    // }</script></body></html>